package com.freecloud.javabasics.jvm;

import com.freecloud.common.Constant;

/**
 * -Xms20M -Xmx20M -Xmn10M -Xss2m -verbose:gc -XX:+PrintGCDetails -XX:PretenureSizeThreshold=6M -XX:-HeapDumpOnOutOfMemoryError
 * @Author: maomao
 * @Date: 2019-11-13 09:47
 */
public class JvmMemoryOOM {


    public static void main(String[] args) {

        while (true){
            byte[] bit = new byte[Constant._1MB * 10];
        }
    }
}
